package com.platform.dao;

import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.platform.entity.UserEntity;

/**
 * 会员Dao
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2017-08-16 15:02:28
 */
public interface UserDao extends BaseDao<UserEntity> {
	UserEntity queryObjectByOpenId(String openId);
	UserEntity queryObjectByUnionId(String unionId);
	int payByBalance(@Param("id")Integer id,@Param("payNum") Float payNum);
	int addRecharge(@Param("id")Integer id,@Param("recharge") Float recharge);
	int receiveRecharge(@Param("id")Integer id,@Param("recharge") Float recharge);
	
    public Map<String,Object> statisticsChildrenMsg(Map<String, Object> params);

}
